import React from "react"
import { createBrowserRouter, RouterProvider } from "react-router-dom"
import Layout from "./Layout.tsx"



import zhangsan from "./routes/zhangsan.tsx"
import lisi from "./routes/lisi.tsx"
import jack from "./routes/jack.tsx"
let router = createBrowserRouter([
    {
        path: "/zhangsan",
        element: <Layout />,
        children: zhangsan
    },
    {
        path: "/lisi",
        element: <Layout />,
        children: lisi
    },
    {
        path: "/jack",
        element: <Layout />,
        children: jack
    }
])

let Routerview = (<RouterProvider router={router} > </RouterProvider>)
export default Routerview